package com.tbit.uqbike.webmanager.business.machinegroup.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tbit.uqbike.webmanager.business.machinegroup.object.MachineGroup;
import com.tbit.uqbike.webmanager.business.machinegroup.object.dto.MachineGroupAddDto;
import com.tbit.uqbike.webmanager.business.machinegroup.object.dto.MachineGroupUpdateDto;
import com.tbit.uqbike.webmanager.business.machinegroup.object.vo.MachineGroupVo;

import java.util.List;

/**
 * @author me
 * @description 针对表【machinegroup(分组表)】的数据库操作Service
 * @createDate 2024-07-12 17:12:06
 */
public interface MachineGroupService extends IService<MachineGroup> {
    List<MachineGroupVo> selectListWithCount(Integer accountId, Integer machineType);

    List<MachineGroupVo> selectListWithCountByIds(Integer accountId, List<Integer> ids);

    void add(MachineGroupAddDto dto);

    void batchUpdate(List<MachineGroupUpdateDto> dtoList);

    /**
     * 查询区域下不在machineGroupIds中的车辆分组数量
     */
    Long getMachineGroupCountNotInIds(Integer accountId, List<Integer> machineGroupIds);
}
